package com.example.computer_exam_training_sys.service.impl;

import com.example.computer_exam_training_sys.entity.CoursesInfo;
import com.example.computer_exam_training_sys.mapper.CoursesMapper;
import com.example.computer_exam_training_sys.service.CoursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CoursesServiceImpl implements CoursesService {

    @Autowired
    public CoursesMapper coursesmapper;

    @Override
    public List<CoursesInfo> findAll() {
        return coursesmapper.findAll();
    }

    @Override
    public CoursesInfo findById(Integer courseId) {
        return coursesmapper.findById(courseId);
    }
}
